package com.ihd.ihardware.view.enter.view;

import android.arch.lifecycle.AndroidViewModel;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import com.ihd.ihardware.R;
import com.ihd.ihardware.databinding.ActivityPerBinding;

import cn.wowjoy.commonlibrary.base.BaseActivity;

public class PerActivity extends BaseActivity<ActivityPerBinding, AndroidViewModel> {

    @Override
    protected void init(Bundle savedInstanceState) {
        mImmersionBar.statusBarDarkFont(false).init();
        binding.registBtnTV.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent i = new Intent(PerActivity.this, RegistActivity.class);
                startActivity(i);
            }
        });

        binding.loginBtnTV.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent i = new Intent(PerActivity.this, LoginActivity.class);
                startActivity(i);
            }
        });
    }

    @Override
    protected int getLayoutId() {
        return R.layout.activity_per;
    }

    @Override
    protected Class getViewModelClass() {
        return AndroidViewModel.class;
    }

}
